<!--@ZixiaFan 2021/11/23 15:24-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人主页</title>
    <script src="js/jquery-1.8.0.js"></script>
    <script>
        //从字典库获取密保问题
        $(function () {
            $.ajax({
                url: "queryQuestion",
                type: "post",
                data: {
                    flag :"question"
                },
                success: function (question) {
                    var s="";
                    for (var i = 0; i < question.length; i++) {
                        s=s+"<option>"+question[i]+"</option>"
                    }
                    $("#questions").append(s);
                }
            })

        });
    </script>
</head>
<body>
当前头像：<img src="images/default.jpg" width="200" height="200"><br/>
用户名：<input type="text" value=""><br/>
密保问题：
<select id="questions">
</select>

</body>
</html>